#include<bits/stdc++.h>
using namespace std;
int read(){
	int a=0;
	bool flag=true;
	char ch=getchar();
	while(!isdigit(ch)){
		if(ch=='-')
		flag=!flag;
		ch=getchar();
	}
	while(isdigit(ch)){
		a=a*10+ch-'0';
		ch=getchar();
	}
	if(flag)return a;
	return -a;
	
}
void write(int a){
	if(a==0||a==-0){
		putchar('0');
		return;
	}
	if(a<=0){
		a=-a;
		putchar('-');
	}
	short i=0,s[20];
	char ch;
	while(a>0){
		s[++i]=a%10;
		a/=10;
	}
	while(i>0){
		ch=s[i]+'0';
		putchar(ch);
		i--;
	}
	return;
}
int r[100005];
int main(){
	freopen("duel.in","r",stdin);
	freopen("duel.out","w",stdout);
	int n=read(),m,ans=0,solve=0;
	
	for(int i=1;i<=n;i++){
		m=read();
		r[m]++;
	}
	for(int i=100000;i>=1;i--){
		if(r[i]==0)continue;
		if(solve>=r[i])continue;
		ans+=r[i]-solve;
		solve=r[i];
	}
	cout<<ans;
	return 0;
}
